/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 登录框样式 */
#login-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
#login-box h1 {
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* 表单样式 */
#login-box form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 输入框样式 */
.input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.input::placeholder {
    color: #80868b;
}

/* 提交按钮样式 */
input[type="submit"] {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #1557b0;
}

input[type="submit"]:active {
    transform: scale(0.98);
}

/* 注册链接样式 */
#login-box a {
    display: inline-block;
    margin-top: 20px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#login-box a:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 480px) {
    #login-box {
        margin: 0 20px;
        padding: 25px 20px;
    }
    
    #login-box h1 {
        font-size: 24px;
    }
    
    .input, input[type="submit"] {
        padding: 12px 14px;
        font-size: 15px;
    }
}
